/**
 * 
 *深圳市店联电子商务有限公司
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * 说明： 
 * Entity Name 用户简历
 * @Author：朱攀
 * @Date：2012-07-26
 */
@Entity
@Table(name="TResume")
public class TResume implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private String ResumeID ;  //简历编号
	 
	private String ResumeName; //申请的职位名称
	private String Name;       //姓名
	private byte Sex;          //性别
	private Date BirthDay;     //出生日期
	private Integer Height;    //身高
	private String BirthPlace; //籍贯
	private Integer English;   //英语水平
	private Integer Cantonese; //粤语
	private String Nation;     //民族
	private byte Education;    //文化程度
	private String NationID;   //身份证号码
	private String Phone;      //电话
	private String Address;    //地址
	private Integer TYPE;      //简历类型
	
	private Date HappenTime;   //更新时间
	private String Skills;     //技能特产
	private String OriResumeID;//简历标号（原）
	private String UserID;     //用户编号
	private String Pic;        //用户图像
	private byte Salary;       //期望薪资
	private String  School;    //毕业学校
	private String  Subject;   //专业
	private String EMail;      //邮箱
	
	private Set<TJobdeLivery> tJobdeLivery=new HashSet<TJobdeLivery>(0);  //查看投递的简历
	
	private Set<TTexperience> tTexperience=new HashSet<TTexperience>(0);  //查看工作经验
	
	@Id
	@Column(name = "ResumeID", length=15)
	public String getResumeID() {
		return ResumeID;
	}
	public void setResumeID(String resumeID) {
		ResumeID = resumeID;
	}
	@Column(name = "ResumeName")
	public String getResumeName() {
		return ResumeName;
	}
	public void setResumeName(String resumeName) {
		ResumeName = resumeName;
	}
	@Column(name = "Name")
	public String getName() {
		return Name;
	}
	public void setName(String name) {
		Name = name;
	}
	@Column(name = "Sex")
	public byte getSex() {
		return Sex;
	}
	public void setSex(byte sex) {
		Sex = sex;
	}
	@Column(name = "BirthDay")
	public Date getBirthDay() {
		return BirthDay;
	}
	public void setBirthDay(Date birthDay) {
		BirthDay = birthDay;
	}
	@Column(name = "Height")
	public Integer getHeight() {
		return Height;
	}
	public void setHeight(Integer height) {
		Height = height;
	}
	@Column(name = "BirthPlace")
	public String getBirthPlace() {
		return BirthPlace;
	}
	public void setBirthPlace(String birthPlace) {
		BirthPlace = birthPlace;
	}
	@Column(name = "English")
	public Integer getEnglish() {
		return English;
	}
	public void setEnglish(Integer english) {
		English = english;
	}
	@Column(name = "Cantonese")
	public Integer getCantonese() {
		return Cantonese;
	}
	public void setCantonese(Integer cantonese) {
		Cantonese = cantonese;
	}
	@Column(name = "Nation")
	public String getNation() {
		return Nation;
	}
	public void setNation(String nation) {
		Nation = nation;
	}
	@Column(name = "Education")
	public byte getEducation() {
		return Education;
	}
	public void setEducation(byte education) {
		Education = education;
	}
	@Column(name = "NationID")
	public String getNationID() {
		return NationID;
	}
	public void setNationID(String nationID) {
		NationID = nationID;
	}
	@Column(name = "Phone")
	public String getPhone() {
		return Phone;
	}
	public void setPhone(String phone) {
		Phone = phone;
	}
	@Column(name = "Address")
	public String getAddress() {
		return Address;
	}
	public void setAddress(String address) {
		Address = address;
	}
	@Column(name = "TYPE")
	public Integer getTYPE() {
		return TYPE;
	}
	public void setTYPE(Integer type) {
		TYPE = type;
	}
	@Column(name = "HappenTime")
	public Date getHappenTime() {
		return HappenTime;
	}
	public void setHappenTime(Date happenTime) {
		HappenTime = happenTime;
	}
	@Column(name = "Skills")
	public String getSkills() {
		return Skills;
	}
	public void setSkills(String skills) {
		Skills = skills;
	}
	@Column(name = "OriResumeID")
	public String getOriResumeID() {
		return OriResumeID;
	}
	public void setOriResumeID(String oriResumeID) {
		OriResumeID = oriResumeID;
	}
	@Column(name = "UserID")
	public String getUserID() {
		return UserID;
	}
	public void setUserID(String userID) {
		UserID = userID;
	}
	@Column(name = "Pic")
	public String getPic() {
		return Pic;
	}
	public void setPic(String pic) {
		Pic = pic;
	}
	@Column(name = "Salary")
	public byte getSalary() {
		return Salary;
	}
	public void setSalary(byte salary) {
		Salary = salary;
	}
	@Column(name = "School")
	public String getSchool() {
		return School;
	}
	public void setSchool(String school) {
		School = school;
	}
	@Column(name = "Subject")
	public String getSubject() {
		return Subject;
	}
	public void setSubject(String subject) {
		Subject = subject;
	}
	@Column(name = "EMail")
	public String getEMail() {
		return EMail;
	}
	public void setEMail(String mail) {
		EMail = mail;
	}      
	
	//查看投递的简历
	@OneToMany(mappedBy="TResume",fetch=FetchType.EAGER )
	@JoinColumn(name="ResumeID")
	public Set<TJobdeLivery> getTJobdeLivery() {
		return tJobdeLivery;
	}
	public void setTJobdeLivery(Set<TJobdeLivery> jobdeLivery) {
		tJobdeLivery = jobdeLivery;
	}
	
	//查看工作经验
	@OneToMany(mappedBy="TResume",fetch=FetchType.EAGER )
	@JoinColumn(name="ResumeID")
	public Set<TTexperience> getTTexperience() {
		return tTexperience;
	}
	public void setTTexperience(Set<TTexperience> texperience) {
		tTexperience = texperience;
	}
	
	
	
	
	
}
